<div class="modal-header bg-success">
    <h2 class="modal-title text-center text-success">
      用户登录<small>v3.0</small>
    </h2>
</div>
<div class="modal-body">
    <div class="form-group">
        <span class="glyphicon glyphicon-user"></span>
        {{ form.email.label }}
        {{ form.email(class='form-control') }}
    </div>
    <div class="form-group">
        <span class="glyphicon glyphicon-eye-close"></span>
        {{ form.password.label }}
        {{ form.password(class='form-control') }}
    </div>
    <div class="form-group">
        <div class="row">
            <div class="col-md-9">
                <span class="glyphicon glyphicon-barcode"></span>
                {{ form.code.label }}
                {{ form.code(class='form-control') }}
            </div>
            <div class="col-md-3">
                <div align="right">
                    <img class='img-rounded' 
                        src = "{{ url_for('get_image') }}" 
                        title="单击刷新"
                        onclick="this.src = 
                            '{{ url_for('get_image') }}?' + 
                                Math.random()">
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        {{ form.remember() }}
        {{ form.remember.label }}
    </div>
</div>
<div class="modal-footer bg-success">
    <div class="form-group">
        <a class="btn btn-lg" href="/pie">
            <span class="glyphicon glyphicon-stats"></span>
            可视化
        </a>
        <a class="btn btn-lg" href="/regist1">
            <span class="glyphicon glyphicon-plus"></span>
            注册
        </a>
        <button name="submit" id="submit" 
                type="submit" class="btn btn-success">
            <span class="glyphicon glyphicon-log-in"></span>
            登录
        </button>
    </div>
</div>